﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Benefit.Models.Sys;
namespace Benefit.Interface.Sys
{
    /// <summary>
    /// 不是交易员，但是可以使用这个系统的人
    /// </summary>
    public interface IUser
    {

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        int[] Login(string username, string password, int tradeHistoryId, string pdate);
        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="user"></param>
        /// <param name="tradeHistoryId"></param>
        /// <param name="pdate"></param>
        /// <returns></returns>
        int UserLogin(User user, int tradeHistoryId, string pdate);

        List<User> GetList();

        User GetModel(int id);
    }
}